package com.cheifsteam.springframework.beans.factory;

import com.cheifsteam.springframework.beans.BeansException;

import java.util.Map;

/**
 * @author 屈燃希
 * @date 2025/1/30 15:44
 * @content
 */
public interface ListableBeanFactory extends BeanFactory{

    /**
     * 根据类型获取所有的bean名称
     * @param requiredType
     * @return
     * @param <T>
     * @throws BeansException
     */
    <T> Map<String,T> getBeansOfType(Class<T> requiredType) throws BeansException;


    /**
     * Return the names of all beans defined in this registry.
     *
     * 返回注册表中所有的Bean名称
     */
    String[] getBeanDefinitionNames();
}
